home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / muds / lpmud312.tar / lpmud312 / lint.h < prev    next >
C/C++ Source or Header  |  1993-01-11  |  10KB  |  289 lines

  1. /*
  2.  * Some structure forward declarations are needed.
  3.  */
  4. struct program;
  5. struct function;
  6. struct svalue;
  7. struct sockaddr;
  8.  
  9. #ifdef BUFSIZ
  10. #    define PROT_STDIO(x) PROT(x)
  11. #else /* BUFSIZ */
  12. #    define PROT_STDIO(x) ()
  13. #endif /* BUFSIZ */
  14.  
  15. #ifdef __STDC__
  16. #    define PROT(x) x
  17. #else /* __STDC__ */
  18. #    define PROT(x) ()
  19. #endif /* __STDC */
  20.  
  21. #ifndef MSDOS
  22. #if defined(sun) && defined(__STDC__)
  23. #ifdef BUFSIZ
  24. int fprintf(FILE *, char *, ...);
  25. int fputs(char *, FILE *);
  26. int fputc(char, FILE *);
  27. int fwrite(char *, int, int, FILE *);
  28. int fread(char *, int, int, FILE *);
  29. #endif
  30. int printf(char *, ...);
  31. int sscanf(char *, char *, ...);
  32. void perror(char *);
  33. #endif
  34.  
  35. int read PROT((int, char *, int));
  36. #ifndef _AIX
  37. char *malloc PROT((unsigned));
  38. char *realloc PROT((char *, unsigned));
  39. #endif
  40. #ifndef sgi 
  41. #ifndef linux
  42. int mkdir PROT((char *, int));
  43. #endif
  44. #endif
  45. int fclose PROT_STDIO((FILE *));
  46. int pclose PROT_STDIO((FILE *));
  47. int atoi PROT((char *));
  48. #ifndef sgi
  49. void srandom PROT((int));
  50. #endif
  51. int chdir PROT((char *));
  52. int gethostname PROT((char *, int));
  53. void abort PROT((void));
  54. int fflush PROT_STDIO((FILE *));
  55. int rmdir PROT((char *));
  56. int unlink PROT((char *));
  57. int fclose PROT_STDIO((FILE *));
  58. #ifndef M_UNIX
  59. #ifndef sgi
  60. int system PROT((char *));
  61. #endif
  62. #endif
  63. void qsort PROT((char *, int, int, int (*)()));
  64. int fseek PROT_STDIO((FILE *, long, int));
  65. int _flsbuf();
  66. int fork PROT((void));
  67. int wait PROT((int *));
  68. int execl PROT((char *, char *, ...));
  69. int pipe PROT((int *));
  70. int dup2 PROT((int, int));
  71. int vfork PROT((void));
  72. void free PROT((char *));
  73. void exit PROT((int));
  74. int _exit PROT((int));
  75. unsigned int alarm PROT((unsigned int));
  76. #ifndef linux
  77. int ioctl PROT((int, ...));
  78. #endif
  79. int close PROT((int));
  80. int write PROT((int, char *, int));
  81. int _filbuf();
  82. char *crypt PROT((char *, char *));
  83. #ifdef sun
  84. char *_crypt PROT((char *, char *));
  85. #endif
  86.  
  87. #ifdef DRAND48
  88. double drand48 PROT((void));
  89. void srand48 PROT((long));
  90. #endif
  91. #ifdef RANDOM
  92. long random PROT((void));
  93. #endif
  94.  
  95. long strtol PROT((char *, char **, int));
  96. int link PROT((char *, char *));
  97. int unlink PROT((char *));
  98. #endif
  99.  
  100. struct object;
  101. char *get_error_file PROT((char *));
  102. void save_error PROT((char *, char *, int));
  103. int write_file PROT((char *, char *));
  104. int file_size PROT((char *));
  105. char *check_file_name PROT((char *, int));
  106. void remove_all_players PROT((void));
  107. void load_wiz_file PROT((void));
  108. void wizlist PROT((char *));
  109. void backend PROT((void));
  110. char *xalloc PROT((int));
  111. void init_string_space PROT((void));
  112. void error();
  113. void fatal();
  114. void add_message();
  115. void trace_log();
  116. void debug_message();
  117. void debug_message_value PROT((struct svalue *)),
  118.     print_local_commands(),
  119.     new_call_out PROT((struct object *, char *, int, struct svalue *)),
  120.     add_action PROT((char *, char *, int)),
  121.     list_files PROT((char *)),
  122.     enable_commands PROT((int)),
  123.     load_ob_from_swap PROT((struct object *));
  124. int tail PROT((char *));
  125. struct object *get_interactive_object PROT((int));
  126. void enter_object_hash PROT((struct object *));
  127. void remove_object_hash PROT((struct object *));
  128. struct object *lookup_object_hash PROT((char *));
  129. int show_otable_status PROT((int verbose));
  130. void dumpstat PROT((void));
  131. struct vector;
  132. void free_vector PROT((struct vector *));
  133. char *query_load_av PROT((void));
  134. void update_compile_av PROT((int));
  135. struct vector *map_array PROT((
  136.                    struct vector *arr,
  137.                    char *func,
  138.                    struct object *ob,
  139.                    struct svalue *extra
  140.                    ));
  141. struct vector *make_unique PROT((struct vector *arr,char *func,
  142.     struct svalue *skipnum));
  143.  
  144. char *describe_items PROT((struct svalue *arr,char *func,int live));
  145. struct vector *filter PROT((struct vector *arr,char *func,
  146.                 struct object *ob, struct svalue *)); 
  147. int match_string PROT((char *, char *));
  148. int set_heart_beat PROT((struct object *, int));
  149. struct object *get_empty_object PROT((int));
  150. struct svalue;
  151. void assign_svalue PROT((struct svalue *, struct svalue *));
  152. void assign_svalue_no_free PROT((struct svalue *to, struct svalue *from));
  153. void free_svalue PROT((struct svalue *));
  154. char *make_shared_string PROT((char *));
  155. void free_string PROT((char *));
  156. int add_string_status PROT((int verbose));
  157. void notify_no_command PROT((void));
  158. void clear_notify PROT((void));
  159. void throw_error PROT((void));
  160. void set_living_name PROT((struct object *,char *));
  161. void remove_living_name PROT((struct object *));
  162. struct object *find_living_object PROT((char *, int));
  163. int lookup_predef PROT((char *));
  164. void yyerror PROT((char *));
  165. int hashstr PROT((char *, int, int));
  166. int lookup_predef PROT((char *));
  167. char *dump_trace PROT((int));
  168. int parse_command PROT((char *, struct object *));
  169. struct svalue *apply PROT((char *, struct object *, int));
  170. void push_string PROT((char *, int));
  171. void push_number PROT((int));
  172. void push_object PROT((struct object *));
  173. struct object *clone_object PROT((char *));
  174. void init_num_args PROT((void));
  175. int restore_object PROT((struct object *, char *));
  176. void tell_object PROT((struct object *, char *));
  177. struct object *first_inventory PROT((struct svalue *));
  178. struct vector *slice_array PROT((struct vector *,int,int));
  179. int query_idle PROT((struct object *));
  180. char *implode_string PROT((struct vector *, char *));
  181. struct object *query_snoop PROT((struct object *));
  182. struct vector *all_inventory PROT((struct object *));
  183. struct vector *deep_inventory PROT((struct object *, int));
  184. struct object *environment PROT((struct svalue *));
  185. struct vector *add_array PROT((struct vector *, struct vector *));
  186. char *get_f_name PROT((int));
  187. #ifndef _AIX
  188. void startshutdowngame PROT((void));
  189. #else
  190. void startshutdowngame PROT((int));
  191. #endif
  192. void set_notify_fail_message PROT((char *));
  193. int swap PROT((struct object *));
  194. int transfer_object PROT((struct object *, struct object *));
  195. struct vector *users PROT((void));
  196. void do_write PROT((struct svalue *));
  197. void log_file PROT((char *, char *));
  198. int remove_call_out PROT((struct object *, char *));
  199. char *create_wizard PROT((char *, char *));
  200. void destruct_object PROT((struct svalue *));
  201. void set_snoop PROT((struct object *, struct object *));
  202. int new_set_snoop PROT((struct object *, struct object *));
  203. void add_verb PROT((char *, int));
  204. void ed_start PROT((char *, char *, struct object *));
  205. void say PROT((struct svalue *, struct vector *));
  206. void tell_room PROT((struct object *, struct svalue *, struct vector *));
  207. void shout_string PROT((char *));
  208. int command_for_object PROT((char *, struct object *));
  209. int remove_file PROT((char *));
  210. int print_file PROT((char *, int, int));
  211. int print_call_out_usage PROT((int verbose));
  212. int input_to PROT((char *, int));
  213. int parse PROT((char *, struct svalue *, char *, struct svalue *, int));
  214. struct object *object_present PROT((struct svalue *, struct object *));
  215. void add_light PROT((struct object *, int));
  216. int indent_program PROT((char *));
  217. void call_function PROT((struct program *, struct function *));
  218. void store_line_number_info PROT((void));
  219. void push_constant_string PROT((char *));
  220. void push_svalue PROT((struct svalue *));
  221. struct variable *find_status PROT((char *, int));
  222. void free_prog PROT((struct program *, int));
  223. void stat_living_objects PROT((void));
  224. int heart_beat_status PROT((int verbose));
  225. void opcdump PROT((void));
  226. void slow_shut_down PROT((int));
  227. struct vector *allocate_array PROT((int));
  228. void yyerror PROT((char *));
  229. void reset_machine PROT((int));
  230. void clear_state PROT((void));
  231. void load_first_objects PROT((void));
  232. void preload_objects PROT((int));
  233. int random_number PROT((int));
  234. void reset_object PROT((struct object *, int));
  235. int replace_interactive PROT((struct object *ob, struct object *obf, char *));
  236. char *get_wiz_name PROT((char *));
  237. char *get_log_file PROT((char *));
  238. int get_current_time PROT((void));
  239. char *time_string PROT((int));
  240. char *process_string PROT((char *));
  241. void update_ref_counts_for_players PROT((void));
  242. void count_ref_from_call_outs PROT((void));
  243. void check_a_lot_ref_counts PROT((struct program *));
  244. int shadow_catch_message PROT((struct object *ob, char *str));
  245. struct vector *get_all_call_outs PROT((void));
  246. char *read_file PROT((char *file, int, int));
  247. char *read_bytes PROT((char *file, int, int));
  248. int write_bytes PROT((char *file, int, char *str));
  249. struct wiz_list *add_name PROT((char *str));
  250. char *check_valid_path PROT((char *, struct wiz_list *, char *, int));
  251. int get_line_number_if_any PROT((void));
  252. void logon PROT((struct object *ob));
  253. struct svalue *apply_master_ob PROT((char *fun, int num_arg));
  254. void assert_master_ob_loaded();
  255. struct vector *explode_string PROT((char *str, char *del));
  256. char *string_copy PROT((char *));
  257. int find_call_out PROT((struct object *ob, char *fun));
  258. void remove_object_from_stack PROT((struct object *ob));
  259. #ifndef sgi
  260. int getpeername PROT((int, struct sockaddr *, int *));
  261. #ifndef linux
  262. void  shutdown PROT((int, int));
  263. #endif
  264. #endif
  265. void compile_file PROT((void));
  266. void unlink_swap_file();
  267. char *function_exists PROT((char *, struct object *));
  268. void set_inc_list PROT((struct svalue *sv));
  269. int legal_path PROT((char *path));
  270. struct vector *get_dir PROT((char *path));
  271. #if !defined(ultrix) && !defined(M_UNIX) && !defined(sgi) && !defined(linux)
  272. extern int rename PROT((char *, char *));
  273. #endif
  274. void get_simul_efun PROT((struct svalue *));
  275. struct function *find_simul_efun PROT((char *));
  276. char *query_simul_efun_file_name PROT((void));
  277. struct vector *match_regexp PROT((struct vector *v, char *pattern));
  278.  
  279. #ifdef MUDWHO
  280. void sendmudwhoinfo PROT((void));
  281. void sendmudwhologout PROT((struct object *ob));
  282. int rwhocli_setup PROT((char *server, char *serverpw, char *myname,
  283.             char *comment));
  284. int rwhocli_shutdown PROT((void));
  285. int rwhocli_pingalive PROT((void));
  286. int rwhocli_userlogin PROT((char *uid, char *name, int tim));
  287. int rwhocli_userlogout PROT((char *uid));
  288. #endif /* MUDWHO */
  289.